package com.dreamchaser.familydevice.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author shajie
 * @since 2020-08-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class ComStatus extends Model<ComStatus> {


    private static final long serialVersionUID = 3272121634127863207L;
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 组件id
     */
    @TableField("com_id")
    private Integer comId;

    /**
     * 状态号
     */
    @TableField("status_code")
    private Integer statusCode;

    /**
     * 变量名
     */
    @TableField("var_name")
    private String varName;

    /**
     * 条件
     */
    @TableField("condition")
    private String condition;

    @TableField("status_name")
    private String statusName;

    @TableField("internal_func")
    private String internalFunc;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
